package com.shuiyun.jtt.message.jt808;

import com.shuiyun.jtt.anno.Message;
import com.shuiyun.jtt.enums.JT808;
import com.shuiyun.jtt.message.JTMessage;
import com.shuiyun.jtt.message.jt808.extend.T8401PhoneBook;
import com.shuiyun.jtt.utils.codec.DataType;
import com.shuiyun.jtt.utils.codec.FieldValue;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@Message(JT808.设置电话本0x8401)
public class T8401 extends JTMessage {

    @FieldValue(type = DataType.BYTE,desc = "设置类型")
    private Integer type;

    @FieldValue(type = DataType.LIST,lengthSize = 1,desc = "联系人")
    private List<T8401PhoneBook> list;


}
